home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / share / themes / AgingGorilla / metacity-1 / metacity-theme-1.xml < prev   
Encoding:
Extensible Markup Language  |  2009-05-14  |  10.3 KB  |  292 lines

  1. <?xml version="1.0"?>
  2. <metacity_theme>
  3. <info>
  4.   <name>Gorilla</name>
  5.   <author>Kenneth Christiansen <kenneth@gnu.org> Anders Carlsson <andersca@gnu.org></author>
  6.   <copyright> Ximian, Inc, 2001</copyright>
  7.   <date>February 8, 2002</date>
  8.   <description>A port of the Gorilla theme by Jacub Steiner</description>
  9. </info>
  10.  
  11. <!-- define constants -->
  12. <constant name="IconTitleSpacing" value="2"/> <!-- Space between menu button and title -->
  13. <constant name="ButtonWidth" value="18"/> <!-- Button width -->
  14.  
  15. <frame_geometry name="normal">
  16.   <distance name="left_width" value="6"/>
  17.   <distance name="right_width" value="6"/>
  18.   <distance name="bottom_height" value="6"/>
  19.   <distance name="left_titlebar_edge" value="8"/>
  20.   <distance name="right_titlebar_edge" value="8"/>
  21.   <aspect_ratio name="button" value="1.0"/>
  22.   <distance name="title_vertical_pad" value="0"/>
  23.   <border name="title_border" left="0" right="0" top="7" bottom="4"/>
  24.   <border name="button_border" left="0" right="0" top="9" bottom="0"/>
  25. </frame_geometry>
  26.  
  27. <frame_geometry name="border" has_title="false">
  28.   <distance name="left_width" value="4"/>
  29.   <distance name="right_width" value="4"/>
  30.   <distance name="bottom_height" value="4"/>
  31.   <distance name="left_titlebar_edge" value="0"/>
  32.   <distance name="right_titlebar_edge" value="0"/>
  33.   <distance name="button_width" value="0"/>
  34.   <distance name="button_height" value="0"/>
  35.   <distance name="title_vertical_pad" value="4"/>
  36.   <border name="title_border" left="0" right="0" top="0" bottom="0"/>
  37.   <border name="button_border" left="0" right="0" top="0" bottom="0"/>
  38. </frame_geometry>
  39.  
  40. <!-- Buttons -->
  41.  
  42. <draw_ops name="title_tile">
  43.   <line color="#494d59" x1="0" y1="0" x2="width" y2="0"/>
  44.   <line color="#515961" x1="0" y1="1" x2="width" y2="1"/>
  45. </draw_ops>
  46.  
  47. <!-- Inactive style -->
  48. <frame_style name="normal" geometry="normal">
  49.   <piece position="entire_background">
  50.     <draw_ops>
  51.       <rectangle color="black" x="1" y="1" width="width - 2" height="height - 2" filled="true"/>
  52.       <rectangle color="dark gray" x="3" y="3" width="width - 8" height="height - 7" filled="false"/>
  53.       <rectangle color="light gray" x="4" y="4" width="width - 9" height="height - 8" filled="false"/>
  54.       <rectangle color="light gray" x="5" y="5" width="width - 11" height="height - 10" filled="false"/>
  55.       <rectangle color="white" x="6" y="6" width="width - 13" height="height - 12" filled="false"/>
  56.       <rectangle color="gtk:bg[INSENSITIVE]" x="6" y="6" width="width - 12" height="height - 12" filled="true"/>
  57.  
  58.       <line color="gtk:bg[INSENSITIVE]" x1="1" y1="1" x2="2" y2="2"/>
  59.       <line color="gtk:bg[INSENSITIVE]" x1="1" y1="height - 2" x2="1" y2="height"/>
  60.       <line color="gtk:bg[INSENSITIVE]" x1="width - 2" y1="1" x2="width - 1" y2="2"/>
  61.       <line color="gtk:bg[INSENSITIVE]" x1="width - 1" y1="height - 1" x2="width - 2" y2="height - 2"/>
  62.    </draw_ops>
  63.   </piece>
  64.  
  65.   <piece position="title">
  66.     <draw_ops>
  67.       <title color="gray" x="IconTitleSpacing" y="0"/>
  68.     </draw_ops>
  69.   </piece>
  70.  
  71.   <piece position="titlebar">
  72.     <draw_ops>
  73.       <rectangle color="black" x="6" y="6" width="width - 12" height="height - 10" filled="true"/>
  74.       <tile name="title_tile" tile_width="width" tile_height="2" x="8" y="8" width="width - 16" height="height - 14"/>
  75.     </draw_ops>
  76.   </piece>
  77.  
  78.   <button function="close" state="normal">
  79.     <draw_ops>
  80.       <image filename="inactive-close-button.png" x="0" y="0" width="width" height="height"/>
  81.     </draw_ops>
  82.   </button>
  83.  
  84.   <button function="close" state="pressed">
  85.     <draw_ops>
  86.       <image filename="inactive-close-button.png" x="0" y="0" width="width" height="height"/>
  87.     </draw_ops>
  88.   </button>
  89.  
  90.   <button function="minimize" state="normal">
  91.     <draw_ops>
  92.       <image filename="inactive-minimize-button.png" x="0" y="0" width="width" height="height"/>
  93.     </draw_ops>
  94.   </button>
  95.  
  96.   <button function="minimize" state="pressed">
  97.     <draw_ops>
  98.       <image filename="inactive-minimize-button.png" x="0" y="0" width="width" height="height"/>
  99.     </draw_ops>
  100.   </button>
  101.  
  102.   <button function="maximize" state="normal">
  103.     <draw_ops>
  104.       <image filename="inactive-maximize-button.png" x="0" y="0" width="width" height="height"/>
  105.     </draw_ops>
  106.   </button>
  107.  
  108.   <button function="maximize" state="pressed">
  109.     <draw_ops>
  110.       <image filename="inactive-maximize-button.png" x="0" y="0" width="width" height="height"/>
  111.     </draw_ops>
  112.   </button>
  113.  
  114.   <button function="menu" state="normal">
  115.     <draw_ops>
  116.       <image filename="inactive-menu-button.png" x="0" y="0" width="width" height="height"/>
  117.     </draw_ops>
  118.   </button>
  119.  
  120.   <button function="menu" state="pressed">
  121.     <draw_ops>
  122.       <image filename="inactive-menu-button.png" x="0" y="0" width="width" height="height"/>
  123.     </draw_ops>
  124.   </button>
  125.  
  126.  
  127. </frame_style>
  128.  
  129.  
  130. <!-- Active (focused) shaded style -->
  131. <frame_style name="normal_shaded" geometry="normal" parent="normal">
  132.  
  133. </frame_style>
  134.  
  135. <!-- Active (focused) style -->
  136. <frame_style name="focused" geometry="normal">
  137.   <piece position="entire_background">
  138.     <draw_ops>
  139.       <rectangle color="black" x="0" y="0" width="width" height="height" filled="true"/>
  140.       <rectangle color="dark gray" x="3" y="3" width="width - 8" height="height - 7" filled="false"/>
  141.       <rectangle color="light gray" x="4" y="4" width="width - 9" height="height - 8" filled="false"/>
  142.       <rectangle color="light gray" x="5" y="5" width="width - 11" height="height - 10" filled="false"/>
  143.       <rectangle color="white" x="6" y="6" width="width - 13" height="height - 12" filled="false"/>
  144.       <rectangle color="gtk:bg[NORMAL]" x="6" y="6" width="width - 12" height="height - 12" filled="true"/>
  145.  
  146.       <line color="gtk:bg[NORMAL]" x1="0" y1="0" x2="1" y2="1"/>
  147.       <line color="gtk:bg[NORMAL]" x1="0" y1="height - 1" x2="1" y2="height"/>
  148.       <line color="gtk:bg[NORMAL]" x1="width - 1" y1="0" x2="width" y2="1"/>
  149.       <line color="gtk:bg[NORMAL]" x1="width" y1="height" x2="width - 1" y2="height - 1"/>
  150.    </draw_ops>
  151.   </piece>
  152.  
  153.   <piece position="title">
  154.     <draw_ops>
  155.       <title color="white" x="IconTitleSpacing" y="0"/>
  156.     </draw_ops>
  157.   </piece>
  158.  
  159.   <piece position="titlebar">
  160.     <draw_ops>
  161.       <rectangle color="black" x="6" y="6" width="width - 12" height="height - 10" filled="true"/>
  162.       <tile name="title_tile" tile_width="width" tile_height="2" x="8" y="8" width="width - 16" height="height - 14"/>
  163.     </draw_ops>
  164.   </piece>
  165.  
  166.   <button function="close" state="normal">
  167.     <draw_ops>
  168.       <image filename="active-close-button.png" x="0" y="0" width="width" height="height"/>
  169.     </draw_ops>
  170.   </button>
  171.  
  172.   <button function="close" state="pressed">
  173.     <draw_ops>
  174.       <image filename="active-close-button.png" x="0" y="0" width="width" height="height"/>
  175.     </draw_ops>
  176.   </button>
  177.  
  178.   <button function="minimize" state="normal">
  179.     <draw_ops>
  180.       <image filename="active-minimize-button.png" x="0" y="0" width="width" height="height"/>
  181.     </draw_ops>
  182.   </button>
  183.  
  184.   <button function="minimize" state="pressed">
  185.     <draw_ops>
  186.       <image filename="active-minimize-button.png" x="0" y="0" width="width" height="height"/>
  187.     </draw_ops>
  188.   </button>
  189.  
  190.   <button function="maximize" state="normal">
  191.     <draw_ops>
  192.       <image filename="active-maximize-button.png" x="0" y="0" width="width" height="height"/>
  193.     </draw_ops>
  194.   </button>
  195.  
  196.   <button function="maximize" state="pressed">
  197.     <draw_ops>
  198.       <image filename="active-maximize-button.png" x="0" y="0" width="width" height="height"/>
  199.     </draw_ops>
  200.   </button>
  201.  
  202.   <button function="menu" state="normal">
  203.     <draw_ops>
  204.       <image filename="active-menu-button.png" x="0" y="0" width="width" height="height"/>
  205.     </draw_ops>
  206.   </button>
  207.  
  208.   <button function="menu" state="pressed">
  209.     <draw_ops>
  210.       <image filename="active-menu-button.png" x="0" y="0" width="width" height="height"/>
  211.     </draw_ops>
  212.   </button>
  213.  
  214. </frame_style>
  215.  
  216. <!-- Active (focused) shaded style -->
  217. <frame_style name="focused_shaded" geometry="normal" parent="focused">
  218.  
  219. </frame_style>
  220.  
  221. <frame_style_set name="normal">
  222. <frame focus="yes" state="shaded" style="focused_shaded"/>
  223. <frame focus="yes" state="normal" resize="both" style="focused"/>
  224. <frame focus="yes" state="maximized" style="focused"/>
  225. <frame focus="yes" state="maximized_and_shaded" style="focused_shaded"/>
  226. <frame focus="no" state="normal" resize="both" style="normal"/>
  227. <frame focus="no" state="shaded" style="normal_shaded"/>
  228. <frame focus="no" state="maximized" style="normal"/>
  229. <frame focus="no" state="maximized_and_shaded" style="normal_shaded"/>
  230. </frame_style_set>
  231.  
  232. <draw_ops name="blank">
  233. <!-- nothing -->
  234. </draw_ops>
  235.  
  236. <frame_style name="border" geometry="border" parent="normal">
  237.   <piece position="title" draw_ops="blank"/>
  238. </frame_style>
  239.  
  240. <frame_style_set name="border">
  241. <frame focus="yes" state="normal" resize="both" style="border"/>
  242. <frame focus="no" state="normal" resize="both" style="border"/>
  243. <frame focus="yes" state="maximized" style="border"/>
  244. <frame focus="no" state="maximized" style="border"/>
  245. <frame focus="yes" state="shaded" style="border"/>
  246. <frame focus="no" state="shaded" style="border"/>
  247. <frame focus="yes" state="maximized_and_shaded" style="border"/>
  248. <frame focus="no" state="maximized_and_shaded" style="border"/>
  249. </frame_style_set>
  250.  
  251. <window type="normal" style_set="normal"/>
  252. <window type="dialog" style_set="normal"/>
  253. <window type="modal_dialog" style_set="normal"/>
  254. <window type="menu" style_set="normal"/>
  255. <window type="utility" style_set="normal"/>
  256. <window type="border" style_set="border"/>
  257.  
  258. <menu_icon function="maximize" state="normal">
  259.   <draw_ops>
  260.     <image filename="active-maximize-menu-icon.png" 
  261.            x="(width - object_width) / 2"
  262.            y="(height - object_height) / 2"
  263.            width="object_width" height="object_height"/>
  264.   </draw_ops>
  265. </menu_icon>
  266.  
  267.  
  268. <menu_icon function="close" state="normal">
  269.   <draw_ops>
  270.     <image filename="active-close-menu-icon.png" 
  271.            x="(width - object_width) / 2"
  272.            y="(height - object_height) / 2"
  273.            width="object_width" height="object_height"/>
  274.   </draw_ops>
  275. </menu_icon>
  276.  
  277. <menu_icon function="minimize" state="normal">
  278.   <draw_ops>
  279.     <image filename="active-minimize-menu-icon.png" 
  280.            x="(width - object_width) / 2"
  281.            y="(height - object_height) / 2"
  282.            width="object_width" height="object_height"/>
  283.   </draw_ops>
  284. </menu_icon>
  285.  
  286. <menu_icon function="unmaximize" state="normal">
  287.   <draw_ops>
  288.   </draw_ops>
  289. </menu_icon>
  290.  
  291. </metacity_theme>
  292.